//
//  UIView+JEHView.m
//  SinaNews
//
//  Created by 蒋恩浩 on 15/12/18.
//  Copyright © 2015年 JEH. All rights reserved.
//

#import "UIView+JEHView.h"

@implementation UIView (JEHView)

- (void)nightMode {
    
    NSUserDefaults *user = [NSUserDefaults standardUserDefaults];
    if ([[user objectForKey:@"NightMode"] isEqualToString:@"Night"]) {
        
        self.backgroundColor = [UIColor colorWithRed:34 / 255.0 green:34 / 255.0 blue:34 / 255.0 alpha:1];
    } else {
        self.backgroundColor = [UIColor whiteColor];
    }
}

@end
